﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;


/// <summary>
/// DEMO
/// 此类用来监听并且接收数据
/// </summary>
public class CEventTypeUnity : MonoBehaviour {

	// Use this for initialization
	void Start () {
        //监听并且接收数据
        //EventSystemManager.Instance.AddEventListener(CEventType.GAME_DATA, LoadData);
        //监听
        EventSystemManager.Instance.AddEventListener("成功", LoadQ);
    }
	
	// Update is called once per frame
	void Update () {
		
	}

    public void LoadData(CBaseEvent evt)
    {
        //处理加载数据的逻辑
        print("哈哈哈哈哈哈");
        print(evt);
    }

    public void LoadQ(CBaseEvent evt)
    {
        print("啦啦啦");
        print(evt);
    }
}
